
package org.springxrsk.modules.classes.service.impl;

import org.springxrsk.modules.classes.pojo.entity.QyClassesLessonsEntity;
import org.springxrsk.modules.classes.pojo.vo.QyClassesLessonsVO;
import org.springxrsk.modules.classes.excel.QyClassesLessonsExcel;
import org.springxrsk.modules.classes.mapper.QyClassesLessonsMapper;
import org.springxrsk.modules.classes.service.IQyClassesLessonsService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springxrsk.core.mp.base.BaseServiceImpl;
import java.util.List;

/**
 * 课表 服务实现类
 *
 *  @author
 * @since 2024-06-23
 */
@Service
public class QyClassesLessonsServiceImpl extends BaseServiceImpl<QyClassesLessonsMapper, QyClassesLessonsEntity> implements IQyClassesLessonsService {

	@Override
	public IPage<QyClassesLessonsVO> selectQyClassesLessonsPage(IPage<QyClassesLessonsVO> page, QyClassesLessonsVO qyClassesLessons) {
		return page.setRecords(baseMapper.selectQyClassesLessonsPage(page, qyClassesLessons));
	}


	@Override
	public List<QyClassesLessonsExcel> exportQyClassesLessons(Wrapper<QyClassesLessonsEntity> queryWrapper) {
		List<QyClassesLessonsExcel> qyClassesLessonsList = baseMapper.exportQyClassesLessons(queryWrapper);
		//qyClassesLessonsList.forEach(qyClassesLessons -> {
		//	qyClassesLessons.setTypeName(DictCache.getValue(DictEnum.YES_NO, QyClassesLessons.getType()));
		//});
		return qyClassesLessonsList;
	}

}
